.class public Lcom/estrongs/android/pop/app/premium/newui/ChinaMemberActivity;
.super Lcom/estrongs/android/pop/esclasses/ESActivity;
.source "ChinaMemberActivity.java"


# instance fields
.field private d:Ljava/lang/String;

.field private e:Lcom/estrongs/android/pop/app/premium/newui/ChinaMemberFragment;

.field private f:Lcom/estrongs/android/pop/app/premium/newui/l;


# direct methods
.method public constructor <init>()V
    .locals 0

    .line 1
    invoke-direct {p0}, Lcom/estrongs/android/pop/esclasses/ESActivity;-><init>()V

    return-void
.end method

.method private B()V
    .locals 4

    .line 1
    invoke-virtual {p0}, Landroid/app/Activity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string v1, "from"

    const/4 v2, 0x0

    .line 2
    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I

    move-result v1

    .line 3
    invoke-virtual {v0}, Landroid/content/Intent;->getAction()Ljava/lang/String;

    move-result-object v2

    const-string v3, "com.estrongs.action.EDITOR_GO_VIP_PAGE"

    invoke-virtual {v3, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_2

    const/16 v0, 0x9

    if-ne v0, v1, :cond_0

    const-string v0, "textedit_highlight"

    .line 4
    iput-object v0, p0, Lcom/estrongs/android/pop/app/premium/newui/ChinaMemberActivity;->d:Ljava/lang/String;

    goto :goto_0

    :cond_0
    const/16 v0, 0x8

    if-ne v0, v1, :cond_1

    const-string v0, "textedit_theme"

    .line 5
    iput-object v0, p0, Lcom/estrongs/android/pop/app/premium/newui/ChinaMemberActivity;->d:Ljava/lang/String;

    goto :goto_0

    :cond_1
    const-string v0, "TBD"

    .line 6
    iput-object v0, p0, Lcom/estrongs/android/pop/app/premium/newui/ChinaMemberActivity;->d:Ljava/lang/String;

    goto :goto_0

    :cond_2
    const-string v1, "from_page"

    .line 7
    invoke-virtual {v0, v1}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/estrongs/android/pop/app/premium/newui/ChinaMemberActivity;->d:Ljava/lang/String;

    :goto_0
    return-void
.end method

.method private C()V
    .locals 3

    .line 1
    new-instance v0, Lorg/json/JSONObject;

    invoke-direct {v0}, Lorg/json/JSONObject;-><init>()V

    :try_start_0
    const-string v1, "page"

    const-string v2, "premium_page"

    .line 2
    invoke-virtual {v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    const-string v1, "from"

    .line 3
    iget-object v2, p0, Lcom/estrongs/android/pop/app/premium/newui/ChinaMemberActivity;->d:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;

    .line 4
    invoke-static {}, Lcom/estrongs/android/statistics/b;->b()Lcom/estrongs/android/statistics/b;

    move-result-object v1

    const-string v2, "show"

    invoke-virtual {v1, v2, v0}, Lcom/estrongs/android/statistics/b;->c(Ljava/lang/String;Lorg/json/JSONObject;)V
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception v0

    .line 5
    invoke-virtual {v0}, Lorg/json/JSONException;->printStackTrace()V

    :goto_0
    return-void
.end method

.method public static a(Landroid/content/Context;Ljava/lang/String;)V
    .locals 2

    .line 1
    new-instance v0, Landroid/content/Intent;

    const-class v1, Lcom/estrongs/android/pop/app/premium/newui/ChinaMemberActivity;

    invoke-direct {v0, p0, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const/high16 v1, 0x10000000

    .line 2
    invoke-virtual {v0, v1}, Landroid/content/Intent;->setFlags(I)Landroid/content/Intent;

    const-string v1, "from_page"

    .line 3
    invoke-virtual {v0, v1, p1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 4
    invoke-virtual {p0, v0}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V

    return-void
.end method


# virtual methods
.method public A()Ljava/lang/String;
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/pop/app/premium/newui/ChinaMemberActivity;->d:Ljava/lang/String;

    return-object v0
.end method

.method public finish()V
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/pop/app/premium/newui/ChinaMemberActivity;->e:Lcom/estrongs/android/pop/app/premium/newui/ChinaMemberFragment;

    if-eqz v0, :cond_0

    invoke-virtual {v0}, Lcom/estrongs/android/pop/app/premium/newui/ChinaMemberFragment;->d()Z

    move-result v0

    if-eqz v0, :cond_0

    return-void

    .line 2
    :cond_0
    invoke-super {p0}, Landroid/app/Activity;->finish()V

    return-void
.end method

.method protected onActivityResult(IILandroid/content/Intent;)V
    .locals 1

    .line 1
    invoke-super {p0, p1, p2, p3}, Lcom/estrongs/android/pop/esclasses/ESActivity;->onActivityResult(IILandroid/content/Intent;)V

    .line 2
    invoke-static {}, Les/b00;->q()Les/b00;

    move-result-object v0

    invoke-virtual {v0, p0, p1, p2, p3}, Les/b00;->a(Landroid/app/Activity;IILandroid/content/Intent;)V

    return-void
.end method

.method public onBackPressed()V
    .locals 1

    .line 1
    invoke-static {}, Lcom/estrongs/android/pop/wxapi/h;->c()Lcom/estrongs/android/pop/wxapi/h;

    move-result-object v0

    invoke-virtual {v0}, Lcom/estrongs/android/pop/wxapi/h;->b()V

    .line 2
    invoke-super {p0}, Landroidx/activity/ComponentActivity;->onBackPressed()V

    return-void
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 2

    .line 1
    invoke-super {p0, p1}, Lcom/estrongs/android/pop/esclasses/ESActivity;->onCreate(Landroid/os/Bundle;)V

    .line 2
    invoke-static {}, Lcom/estrongs/android/util/o0;->d()Z

    move-result p1

    if-eqz p1, :cond_0

    const/4 p1, 0x0

    .line 3
    invoke-virtual {p0, p1}, Landroid/app/Activity;->setRequestedOrientation(I)V

    .line 4
    :cond_0
    invoke-static {}, Les/cp;->e()Les/cp;

    move-result-object p1

    const/4 v0, 0x1

    invoke-virtual {p1, v0}, Les/cp;->a(I)V

    .line 5
    invoke-direct {p0}, Lcom/estrongs/android/pop/app/premium/newui/ChinaMemberActivity;->B()V

    const p1, 0x7f0c002b

    .line 6
    invoke-virtual {p0, p1}, Lcom/estrongs/android/pop/esclasses/ESActivity;->setContentView(I)V

    .line 7
    invoke-virtual {p0}, Lcom/estrongs/android/pop/esclasses/ESActivity;->getResources()Landroid/content/res/Resources;

    move-result-object p1

    const v0, 0x7f06029c

    invoke-virtual {p1, v0}, Landroid/content/res/Resources;->getColor(I)I

    move-result p1

    invoke-static {p0, p1}, Lcom/estrongs/android/pop/utils/o;->a(Landroid/app/Activity;I)V

    .line 8
    invoke-virtual {p0}, Landroidx/fragment/app/FragmentActivity;->getSupportFragmentManager()Landroidx/fragment/app/FragmentManager;

    move-result-object p1

    const v0, 0x7f09024d

    .line 9
    invoke-virtual {p1, v0}, Landroidx/fragment/app/FragmentManager;->findFragmentById(I)Landroidx/fragment/app/Fragment;

    move-result-object p1

    check-cast p1, Lcom/estrongs/android/pop/app/premium/newui/ChinaMemberFragment;

    iput-object p1, p0, Lcom/estrongs/android/pop/app/premium/newui/ChinaMemberActivity;->e:Lcom/estrongs/android/pop/app/premium/newui/ChinaMemberFragment;

    if-nez p1, :cond_1

    .line 10
    invoke-static {}, Lcom/estrongs/android/pop/app/premium/newui/ChinaMemberFragment;->f()Lcom/estrongs/android/pop/app/premium/newui/ChinaMemberFragment;

    move-result-object p1

    iput-object p1, p0, Lcom/estrongs/android/pop/app/premium/newui/ChinaMemberActivity;->e:Lcom/estrongs/android/pop/app/premium/newui/ChinaMemberFragment;

    .line 11
    invoke-virtual {p0}, Landroidx/fragment/app/FragmentActivity;->getSupportFragmentManager()Landroidx/fragment/app/FragmentManager;

    move-result-object p1

    iget-object v1, p0, Lcom/estrongs/android/pop/app/premium/newui/ChinaMemberActivity;->e:Lcom/estrongs/android/pop/app/premium/newui/ChinaMemberFragment;

    invoke-static {p1, v1, v0}, Lcom/estrongs/android/pop/app/x;->a(Landroidx/fragment/app/FragmentManager;Landroidx/fragment/app/Fragment;I)V

    .line 12
    :cond_1
    new-instance p1, Lcom/estrongs/android/pop/app/premium/newui/l;

    iget-object v0, p0, Lcom/estrongs/android/pop/app/premium/newui/ChinaMemberActivity;->e:Lcom/estrongs/android/pop/app/premium/newui/ChinaMemberFragment;

    invoke-direct {p1, v0}, Lcom/estrongs/android/pop/app/premium/newui/l;-><init>(Lcom/estrongs/android/pop/app/premium/newui/k;)V

    iput-object p1, p0, Lcom/estrongs/android/pop/app/premium/newui/ChinaMemberActivity;->f:Lcom/estrongs/android/pop/app/premium/newui/l;

    .line 13
    invoke-direct {p0}, Lcom/estrongs/android/pop/app/premium/newui/ChinaMemberActivity;->C()V

    .line 14
    iget-object p1, p0, Lcom/estrongs/android/pop/app/premium/newui/ChinaMemberActivity;->f:Lcom/estrongs/android/pop/app/premium/newui/l;

    invoke-virtual {p1}, Lcom/estrongs/android/pop/app/premium/newui/l;->b()V

    return-void
.end method

.method protected onDestroy()V
    .locals 1

    .line 1
    invoke-super {p0}, Lcom/estrongs/android/pop/esclasses/ESActivity;->onDestroy()V

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/pop/app/premium/newui/ChinaMemberActivity;->f:Lcom/estrongs/android/pop/app/premium/newui/l;

    invoke-virtual {v0}, Lcom/estrongs/android/pop/app/premium/newui/l;->c()V

    return-void
.end method

.method protected onNewIntent(Landroid/content/Intent;)V
    .locals 0

    .line 1
    invoke-super {p0, p1}, Landroidx/fragment/app/FragmentActivity;->onNewIntent(Landroid/content/Intent;)V

    .line 2
    invoke-virtual {p0, p1}, Landroid/app/Activity;->setIntent(Landroid/content/Intent;)V

    .line 3
    invoke-direct {p0}, Lcom/estrongs/android/pop/app/premium/newui/ChinaMemberActivity;->B()V

    return-void
.end method
